//
//  ZYQHomeTopView.m
//  bbwy
//
//  Created by 张亚祺 on 2018/4/12.
//  Copyright © 2018年 zhangyaqi. All rights reserved.
//

#import "ZYQHomeTopView.h"
#import <SDCycleScrollView/SDCycleScrollView.h>
#import "ProgressView.h"

@interface ZYQHomeTopView()

@property (weak, nonatomic) IBOutlet UIView *topView;
@property (weak, nonatomic) IBOutlet ProgressView *progressView;
@property (weak, nonatomic) IBOutlet UIButton *gymnasiumBtn;
@property (weak, nonatomic) IBOutlet UIButton *maintenanceBtn;
@property (weak, nonatomic) IBOutlet UIButton *localSpecialtyBtn;
@property (weak, nonatomic) IBOutlet UIButton *agriculturalByProductBtn;

@end

@implementation ZYQHomeTopView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    // 网络加载图片的轮播器
    //    SDCycleScrollView *cycleScrollView = [cycleScrollViewWithFrame:frame delegate:delegate placeholderImage:placeholderImage];
    //    cycleScrollView.imageURLStringsGroup = imagesURLStrings;
    
    // 本地加载图片的轮播器
    SDCycleScrollView *cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, ScreenW, 200) imageNamesGroup:@[@"1",@"2",@"3"]];
    
    [self.topView addSubview:cycleScrollView];
    
    self.progressView.progress = 0.85;
}

- (IBAction)btnClick:(UIButton *)sender {
    if ([_delegate respondsToSelector:@selector(btnClick:)]) {
        [_delegate btnClick:sender.tag];
    }
}
- (IBAction)gymnasiumBtnClick {
    ZYQLog(@"健身馆");
}

@end
